﻿<header class="navbar navbar-static-top bs-docs-nav" id="top">
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="/" class="navbar-brand logo">第三女神排课</a>
        </div>
        <nav id="bs-navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                @{
                    if (ViewBag.currentLoginer != null)
                    {
                    <li class="topbar-right-item">
                        <a href="/ScheduleClass/Index">欢迎您，@ViewBag.currentLoginer.userAccount</a>
                    </li>
                    <li>
                        <a href="/Home/Logout">退出</a>
                    </li>
                    }
                    else
                    {
                    <li><a href="/Home/Login">登录</a></li>
                    <li>
                        <a href="/Home/Register">注册</a>
                    </li>
                    }
                }
            </ul>
        </nav>
    </div>
</header>
